﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Compiled_Tests;
using Compiled_Tests.RuleBase;

namespace LEET.CommonInterfaces.TestControls
{
    public interface IAutomationActionResult
    {
        bool isEmpty { get; }
        
        bool isError { get; }
        Exception Error { get; }

        bool isProcess { get; }
        IProcess Process { get; }


        bool isSignal { get; }
        ScriptSignal Signal { get; }

        bool isRuleBase { get; }

        IRuleBase RuleBase();

        bool isTestScript { get; }
        ITestScript TestScript();

        String ToString();

        bool IsFirstResult { get; set; }
    }
    
    public enum ScriptSignal
    {
        Wait, Closing
    }
}
